<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/include/include.jsp"%>

<div class="pageContent" id="page_${now.time}">
	<form action="<c:if test="${not empty notice}"><c:url value="/system/notice/edit"/></c:if><c:if test="${empty notice}"><c:url value="/system/notice/add"/></c:if>" 
		method="post" onsubmit="return validateCallback(this, navTabAjaxDone)">
	<div class="pageFormContent" layoutH="56">
		<fieldset>
			<c:if test="${not empty notice }">
			<dl>
				<dt><fmt:message key="page.notice.id"/>：</dt>
				<dd>
					<input name="id" type="text" size="30" value="${notice.id}" readonly="readonly"/>
				</dd>			
			</dl>
			</c:if>
			<dl class="nowrap">
				<dt><fmt:message key="page.notice.title"/>：</dt>
				<dd>
					<input name="title" type="text" size="60" value="${notice.title}"/>
				</dd>
			</dl>
			<dl class="nowrap">
				<dt><fmt:message key="page.notice.content"/>：</dt>
				<dd>
					<textarea rows="3" cols="100" name="content">${notice.content}</textarea>
				</dd>
			</dl>	
			<c:if test="${not empty notice }">
			<dl>
				<dt><fmt:message key="page.notice.creater"/>：</dt>
				<dd>
					<input name="creater" type="text" size="30" value="${notice.creater}" readonly="readonly"/>
				</dd>
			</dl>
			<dl>
				<dt><fmt:message key="page.notice.createTime"/>：</dt>
				<dd>
					<input name="createTime" type="text" size="30" value="<fmt:formatDate value="${notice.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>" readonly="readonly"/>
				</dd>
			</dl>
			<dl>
				<dt><fmt:message key="page.notice.updater"/>：</dt>
				<dd>
					<input name="updater" type="text" size="30" value="${notice.updater}" readonly="readonly"/>
				</dd>
			</dl>
			<dl>
				<dt><fmt:message key="page.notice.updateTime"/>：</dt>
				<dd>
					<input name="updateTime" type="text" size="30" value="<fmt:formatDate value="${notice.updateTime}" pattern="yyyy-MM-dd HH:mm:ss"/>" readonly="readonly"/>
				</dd>
			</dl>
			</c:if>
		</fieldset>
		
	</div>
	
	<div class="formBar">
		<ul>
			<c:if test="${readOnly ne '1'}">
				<youthburin:hasAnyPermissions name="user:add,user:edit">
					<li>
						<div class="buttonActive">
							<div class="buttonContent">
								<button type="submit"><fmt:message key="page.button.save"/></button>
							</div>
						</div>
					</li>
				</youthburin:hasAnyPermissions>
			</c:if>
			<li>
				<div class="button">
					<div class="buttonContent">
						<button type="button" class="close"><fmt:message key="page.button.cancel"/></button>
					</div>
				</div>
			</li>
		</ul>
	</div>
	</form>
</div>